package com.up.upzl.biz;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.up.upzl.UpzlApplicationTests;
import com.up.upzl.biz.service.SequenceService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SequenceServiceT extends UpzlApplicationTests {

	@Autowired
	private SequenceService sequenceService;

	@Test
	public void currVal() {
		Long currVal = sequenceService.currVal("sq_my_sequence");
		log.info("Current val is {}", currVal);
	}

	@Test
	public void nextVal() {
		Long nextVal = sequenceService.nextVal("sq_my_sequence");
		log.info("Next val is {}", nextVal);
	}

}
